<?php

declare(strict_types=1);

namespace app\common\model\crm;

use think\Model;

use app\common\traits\ModelTrait;

/**
 * 供应商表 - 模型
 * @author 龙
 * @date  2022-07-16
 * @copyright ©2022 泉州市盛筑信息科技有限公司 版权所有
 */
class CrmSupplier extends Model
{


  //开启自动写入时间戳字段
  protected $autoWriteTimestamp = true;
  protected $createTime = 'create_time';
  protected $updateTime = null;

  // 设置字段信息(避免多一次查询的开销)
  protected $schema = [
    'id'                 => 'int',
    'supplier_name'      => 'varchar',
    'supplier_number'    => 'varchar',
    'supplier_address'   => 'varchar',
    'sequence'           => 'int',
    'status'             => 'int',
    'explain'            => 'varchar',
    'create_time'        => 'int',
    'mailbox'            => 'varchar',
    'cellphone'          => 'varchar',
    'linkman'            => 'varchar'
  ];


  use ModelTrait;
}
